package com.yixun.qfbao.mapper;

import com.yixun.qfbao.model.EstateAdviser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EstateAdviserMapper {
	
    int insert(EstateAdviser record);

    int insertSelective(EstateAdviser record);

	int batchInsert(List<EstateAdviser> collect);
	
	int deleteByPremisesId(Long premisesId);

	int deleteAdvisersByPremisesId(Long premisesId);

	int edit(EstateAdviser estateAdviser);

	List<EstateAdviser> listByPremisesId(Long premisesId);

	EstateAdviser getAdviserByUuid(String adviserUuid);

	List<EstateAdviser> selectListByPartner(Long partnerId);
	
	List<EstateAdviser> selectListByPartnerAndPremises(@Param("partnerId")Long partnerId, @Param("premisesIds")List<Long> premisesIds);

	EstateAdviser selectOne(@Param("entity")EstateAdviser adviser);
}